package sto.orz.html.form;

import sto.orz.html.Element;

public class ElementConfig {
	private sto.orz.html.ElementType elementType = sto.orz.html.ElementType.TEXTBOX;

	private ExtendMode extendMode = ExtendMode.NONE;

	private String label = "";

	private String mapping = "";

	public ElementConfig() {
	}

	public ElementConfig(Element a) {
		setLabel(a.label());
		setMapping(a.mapping());
		setElementType(a.elementType());
		setExtendMode(a.extendMode());
	}

	public sto.orz.html.ElementType getElementType() {
		return elementType;
	}

	public ExtendMode getExtendMode() {
		return extendMode;
	}

	public String getLabel() {
		return label;
	}

	public String getMapping() {
		return mapping;
	}

	public void setElementType(sto.orz.html.ElementType elementType) {
		this.elementType = elementType;
	}

	public void setExtendMode(ExtendMode extendMode) {
		this.extendMode = extendMode;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public void setMapping(String mapping) {
		this.mapping = mapping;
	}
}
